<template>
	<view class="container">
		<view class="list" style="background-color: #fff; margin-top: 20rpx; padding-right: 20rpx">
			<!-- 黑名单 -->
			<view
				style="width: 100%; display: flex; justify-content: space-between; border-bottom: 1rpx solid #e8e8e8; padding-right: 20rpx"
				@click="navigate(1)">
				<view style="height: 132rpx; line-height: 132rpx; position: relative">
					<text style="font-size: 32rpx; margin-left: 60rpx">黑名单</text>
				</view>
				<view style="height: 132rpx; line-height: 132rpx">
					<image src="../../static/myimg/a6.png" style="width: 30rpx; height: 30rpx"></image>
				</view>
			</view>
			<!-- 关于我们 -->
			<view style="width: 100%; display: flex; justify-content: space-between; border-bottom: 1rpx solid #e8e8e8"
				@click="navigate(2)">
				<view style="height: 132rpx; line-height: 132rpx; position: relative">
					<text style="font-size: 32rpx; margin-left: 60rpx">关于我们</text>
				</view>
				<view style="height: 132rpx; line-height: 132rpx">
					<image src="../../static/myimg/a6.png" style="width: 30rpx; height: 30rpx"></image>
				</view>
			</view>
		</view>
		<button class="btn" @click="outlogin">退出登录</button>
	</view>
</template>

<script>
	const RongIMLib = require('@/utils/RongIM.js');
	export default {
		data() {
			return {};
		},
		methods: {
			navigate(type) {
				if (type == 1) {
					uni.navigateTo({
						url: '/my/blacklist/blacklist'
					});
				} else {
					uni.navigateTo({
						url: '/my/about/about'
					});
				}
			},
			outlogin() {
				RongIMLib.lougout()


				setTimeout(() => {
					uni.clearStorageSync()
					uni.reLaunch({
						url: '/login/login/login'
					})
				}, 1000)
			}
		}
	};
</script>

<style lang="scss">
	page {
		background-color: #f8f8f8;
	}

	.btn {
		position: absolute;
		bottom: 20%;
		width: 92%;
		height: 88rpx;
		line-height: 88rpx;
		color: #666666;
		background-color: #e8e8e8;
		border-radius: 40rpx;
		text-align: center;
		margin-left: 30rpx;
	}
</style>